#include "user.h"

user::user(){

}

user::user(const user&){

}


user& user::operator=(const user&){

}
user* user::muser = new user();
user* user::getInstance(){
    return muser;
}
void user::setUsername(QString name){
    this->username=name;
}
QString user::getUsername(){
    return this->username;
}
void user::setUserpassword(QString password){
    this->userpassword=password;
}
QString user::getUserpassword(){
    return this->userpassword;
}
void user::setUserphone(QString phone){
    this->userphone=phone;
}
QString user::getUserphone(){
    return this->userphone;
}
void user::setUsermail(QString mail){
    this->usermail=mail;
}
QString user::getUsermail(){
    return this->usermail;
}
void user::setUserqq(QString qq){
    this->userqq=qq;
}
QString user::getUserqq(){
    return this->userqq;
}
void user::setUsermoney(QString money){
    this->usermoney=money;
}
QString user::getUsermoney(){
    return this->usermoney;
}
bool user::getUserflag(){
    if(this->muser==NULL)
    {
        return false;
    }else{
        return true;
    }
}
